package com.xing.todolist.db.base;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity(tableName = "TodoMsg")
public class TodoMsg implements Serializable {

    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    public int id;

    @ColumnInfo(name = "title")
    public String title;

    @ColumnInfo(name = "content")
    public String content;


    public TodoMsg() {
    }

    @Ignore
    public TodoMsg(String title) {
        this.title = title;
    }

}
